package com.ssy.lingxi.purchase.repository.bidding;

import com.ssy.lingxi.purchase.entity.bidding.BiddingDemandMember;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
*采购竞价
*/
@Repository
public interface BiddingDemandMemberRepository extends JpaRepository<BiddingDemandMember, Long> {

    List<BiddingDemandMember> findAllByBiddingId(Long biddingId);


    Page<BiddingDemandMember> findAllByBiddingId(Long biddingId, Pageable page);


    void deleteAllByBiddingId(Long  biddingId);

    void deleteAllByBiddingIdIn(List<Long> biddingId);
}
